package com.zhuangjie.rider.feign;

import com.zhaungjie.base.conduit.TypeR;
import com.zhuangjie.shop.vo.ShopForRider;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "spark-shop",path = "/shop")
public interface ShopFeignService {

    /**
     *  获取骑手到达店铺shop信息（配送信息）
     * @param shopId
     * @return
     */
    @GetMapping("/shop/address")
    TypeR<ShopForRider> getShopDeliveryInfo(@RequestParam("shopId") Long shopId);
}
